//
//  AddMusicButtonCell.m
//  MIDI
//
//  Created by 邵子凡 on 15/10/28.
//  Copyright © 2015年 QXSX. All rights reserved.
//

#import "AddMusicButtonCell.h"

@interface AddMusicButtonCell ()
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;
@property (weak, nonatomic) IBOutlet UIButton *applyBtn;



@end

@implementation AddMusicButtonCell

+(instancetype)cellWithTableView:(UITableView *)tableView{
    
    static NSString *ID = @"AddMusicButtonCell";
    AddMusicButtonCell  *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"AddMusicButtonCell" owner:nil options:nil]firstObject] ;
        
    }
    
    [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    
    return cell;
}

- (void)awakeFromNib {
    
    //设置圆角
    self.cancelBtn.layer.cornerRadius = 8;
    self.applyBtn.layer.cornerRadius = 8;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
